﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="AdClickInfo.aspx.cs" Inherits="Manage_Seller_AdClickInfo" %>

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <!--#include file="../js/html_head.inc"-->
    <link rel="stylesheet" href="../Themes/<%=ManageHelper.GetTheme()%>/style.css" type="text/css" />
    <title>服务器列表</title>

    <script>
        function selChange(thisValue)
        {
            self.location.href="AdClickInfo.aspx?type="+thisValue+"&ID="+<%=AdID %>+"&scaleMin="+<%=scaleMin %>+"&scaleMax="+<%=scaleMax %>;
        }
    </script>

</head>
<body>
    <%=ManageHelper.PageSucMsg()!=""?"<div class='msg_succeed'>"+ManageHelper.PageSucMsg()+"</div>":""%>
    <table style="border-width: 0px; width: 95%; border-collapse: collapse;">
        <tr>
            <td align="left" valign="middle">
                <select onchange="selChange(this.value);">
                    <option value="1" <%=Type==1?"selected":"" %>>天</option>
                    <option value="2" <%=Type==2?"selected":"" %>>周</option>
                    <option value="3" <%=Type==3?"selected":"" %>>月</option>
                    <option value="4" <%=Type==4?"selected":"" %>>年</option>
                </select>
            </td>
           
        </tr>
    </table>
    <div class="column">
        <div class="columntitle">
            广告管理
        </div>
        <table cellspacing="0" cellpadding="0" rules="all" align="center" border="0" id="MyDataGrid"
            style="border-width: 0px; width: 100%; border-collapse: collapse;">
            <tr class="summary-title" style="height: 25px;">
                <td align="center" width="25%">
                    点击量</td>
                <td align="center" width="25%">
                    日期</td>
                <td align="center" width="25%">
                    操作</td>
            </tr>
            <%
                for (int i = 0; i < dt.Rows.Count; i++)
                {
            %>
            <tr class="tdbg" onmouseover="this.className='tdbg-dark';" onmouseout="this.className='tdbg';"
                style="height: 25px;">
                <td align="center">
                    <%= Math.Floor(KeRui.Common.Utils.StrToFloat(dt.Rows[i]["CountNum"].ToString(), 100) * Double.Parse(r.Next(scaleMin, scaleMax).ToString()) / 100)%>
                </td>
                <td align="center">
                    <%=dt.Rows[i]["TDate"]%>
                </td>
                <td align="center">
                    <a href="AdClickDetails.aspx?id=<%=dt.Rows[i]["AdID"]%>&tdate=<%=dt.Rows[i]["TDate"] %>&type=<%=Type %>&scaleMin=<%=scaleMin %>&scaleMax=<%=scaleMax %>">
                        详情</a>
                </td>
            </tr>
            <%
                } 
            %>
        </table>
    </div>
    <%--<%=PageShow %>--%>
</body>
</html>
